<?php

echo $_GET['text'];

header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary"); 
header("Content-disposition: attachment; filename=\"".$_GET['name']."\""); 
?>